/*
 * @Description: 
 * @Author: liuzl
 * @Date: 2024-10-16 19:19:25
 * @LastEditors: liuzl
 * @LastEditTime: 2024-10-16 20:05:40
 */

import java.io.Serializable;

public class Teacher implements Serializable {
    private static final long serialVersionUID = 1L;
    private String name;
    private int age;
    private double salary;

    public Teacher() {
    }
    public Teacher(String name, int age, double salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public double getSalary() {
        return salary;
    }
    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Teacher{" +"name='" + name + '\'' +", age=" + age + ", salary=" + salary + '}';
    }
}